#!/bin/bash
kubeadm init --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers --pod-network-cidr 192.168.0.0/16 && \
export KUBECONFIG=/etc/kubernetes/admin.conf && \
kubectl apply -f tigera-operator.yaml && kubectl apply -f custom-resources.yaml && \
kubectl taint nodes --all node-role.kubernetes.io/master-
